package com.lbssoft.gpsbd.service.impl;

import com.lbssoft.datalink.util.Log;
import com.lbssoft.gpsbd.service.CacheService;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * Created by nczc on 2018/5/21.
 */
@Service
public class CacheServiceImpl implements CacheService {

    @Override
    @CacheEvict(value = "token", allEntries = true)
    public void cleanCacheAllToken() {
    }

    @Override
    @CacheEvict(value = "permis", allEntries = true)
    public void cleanCacheAllRolePermiss() {
        Log.info("清理角色权限缓存");

    }
}
